package com.chenyaowei.marketing.mapper;

import com.chenyaowei.marketing.domain.CywCouponSpuCategoryRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠券分类关联Mapper接口
 * 
 * @author 陈耀威
 * @date 2023-11-28
 */
public interface CywCouponSpuCategoryRelationMapper 
{
    /**
     * 查询优惠券分类关联
     * 
     * @param id 优惠券分类关联主键
     * @return 优惠券分类关联
     */
    public CywCouponSpuCategoryRelation selectCywCouponSpuCategoryRelationById(Long id);

    /**
     * 查询优惠券分类关联列表
     * 
     * @param cywCouponSpuCategoryRelation 优惠券分类关联
     * @return 优惠券分类关联集合
     */
    public List<CywCouponSpuCategoryRelation> selectCywCouponSpuCategoryRelationList(CywCouponSpuCategoryRelation cywCouponSpuCategoryRelation);

    /**
     * 新增优惠券分类关联
     * 
     * @param cywCouponSpuCategoryRelation 优惠券分类关联
     * @return 结果
     */
    public int insertCywCouponSpuCategoryRelation(CywCouponSpuCategoryRelation cywCouponSpuCategoryRelation);

    /**
     * 修改优惠券分类关联
     * 
     * @param cywCouponSpuCategoryRelation 优惠券分类关联
     * @return 结果
     */
    public int updateCywCouponSpuCategoryRelation(CywCouponSpuCategoryRelation cywCouponSpuCategoryRelation);

    /**
     * 删除优惠券分类关联
     * 
     * @param id 优惠券分类关联主键
     * @return 结果
     */
    public int deleteCywCouponSpuCategoryRelationById(Long id);

    /**
     * 批量删除优惠券分类关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCywCouponSpuCategoryRelationByIds(Long[] ids);

    List<CywCouponSpuCategoryRelation> selectListByCouponIds(@Param("couponIds") List<Long> couponIds);

    List<CywCouponSpuCategoryRelation> selectListByCouponId(@Param("couponId") Long couponId);
}
